import api from "@/utils/service";

export const redeemList = (data) => {
  return api({
    url: "/product/redeem/list",
    method: "get",
    params: { ...data },
  });
};

export const redeemDetails = (id) => {
  return api({
    url: `/product/redeem/details?id=${id}`,
    method: "get",
  });
};

export const redeem = (data) => {
  return api({
    url: `/product/redeem`,
    method: "post",
    data
  });
};

export const productList = (data) => {
  return api({
    url: "/product/list",
    method: "get",
    params: { ...data },
  });
};
export const productStatus = (data) => {
  return api({
    url: `/product/status?id=${data.id}&status=${data.status}`,
    method: "post"
  });
};
export const productEdit = (data) => {
  return api({
    url: `/product/edit`,
    method: "post",
    data
  });
};


